import React from 'react';
import Contants from '../utils/Constants';
import utils from '../utils';

const date = utils.getOneMomentTime(3);
module.exports = [
  {
    key: 'search_eq_outTradeNo',
    title: '应用订单号',
    dataType: 'varchar'
  },
  {
    key: 'search_like_name',
    title: '商品名称',
    dataType: 'varchar'
  },
  {
    key: 'search_like_addressee',
    title: '收货人',
    dataType: 'varchar'
  },
  {
    key: 'search_eq_phone',
    title: '手机号',
    dataType: 'varchar'
  },
  {
    key: 'search_eq_status',
    title: '状态',
    dataType: 'int',
    showType: 'select',
    options: utils.map2kvArr(Contants.ORDER_STATUS_MAP)
  },
  {
    key: 'search_eq_appId',
    title: '应用',
    dataType: 'int',
    showType: 'select',
  },
  {
    key: 'search_bw_createTime_',
    title: '订单创建时间',
    dataType: 'datetime',
    showType: 'between',
    defaultValueBegin: date[0],
    defaultValueEnd: date[1],
  },
  {
    key: 'search_eq_orderSn',
    title: 'ERP订单号',
    dataType: 'varchar'
  },
];